package com.lilili.ssh.base;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.apache.struts2.ServletActionContext;

import com.opensymphony.xwork2.ActionSupport;

public class BaseAction extends ActionSupport{

	private static final long serialVersionUID = 1L;

	//protected final Log log = LogFactory.getLog(getClass());
	
	protected final String RESULT="result";
	
	protected final String BLANK="blank";
	
	private String target;
	
	public String getTarget(){
		return this.target;
	}
	public void setTarget(String target){
		this.target=target;
	}
	
	protected String Result(String target){
		setTarget(target);
		return RESULT;
	}
	
	protected HttpServletRequest getRequest() {
        return ServletActionContext.getRequest();
    }
	
	protected HttpServletResponse getResponse(){
		return ServletActionContext.getResponse();
	}
}
